﻿using DoNet.Core;
using DoNet.System.Dtos;
using DoNet.System.IRepositories;
using DoNet.System.IServices;
using DoNet.System.Models;

namespace DoNet.System.Services
{
    /// <summary>
    /// 
    /// </summary>
    public class TaskJobsLogService : BaseService<TaskJobsLog, TaskJobsLogOutputDto>, ITaskJobsLogService
    {
        /// <summary>
        /// 
        /// </summary>
        private readonly ITaskJobsLogRepository repository;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="_baseRepository"></param>
        /// <param name="_repository"></param>
        public TaskJobsLogService(IRepository<TaskJobsLog> _baseRepository, ITaskJobsLogRepository _repository)
        {
            baseRepository = _baseRepository;
            repository = _repository;
        }

        #region 同步方法
        /// <summary>
        /// 清空日志
        /// </summary>
        /// <returns></returns>
        public bool ClearLog()
        {
            return repository.ClearLog();
        }
        #endregion 同步方法

        #region 异步方法
        #endregion 异步方法
    }
}
